//
//  XLocalizedBundle.h
//  International_Lab
//
//  Created by Xu Deheng on 12-8-10.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define XLocalizedString(key, comment) \
[XLocalizedBundle localizedStringWithKey:(key) andValue:@""]

#define XLocalizedStringFromTable(key, tbl, comment) \
[XLocalizedBundle localizedStringWithKey:(key) andValue:@"" fromTable:(tbl)]


@interface XLocalizedBundle : NSBundle

+ (NSBundle*)currentBundle;

+ (void)setLocalizationIdentifier:(NSString*)localizationIdentifier;
+ (void)setTableListName:(NSString*)table;

+ (NSString*)localizedStringWithKey:(NSString *)thekey andValue:(NSString *)value;
+ (NSString*)localizedStringWithKey:(NSString *)thekey andValue:(NSString *)value fromTable:(NSString*)table;

@end
